@extends('admin.layout')
@section('title','专家管理页')
@section('content')
<div>
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <div class="col-md-12" id="content">
            <div class="app_content_div" id="app_content_div_301Index">
                <h3>专家列表</h3>
            </div>

            <div>
            <div style="float:right;">
                <a href="/adm/expert/add"><button type="button" class="btn btn-primary"> 新增专家</button></a>
            </div>
        </div>
        <table class="table table-striped">
            <thead>
            <tr>
                <th>id</th>
                <th>姓名</th>
                <th>职称</th>
                <th>科室</th>
                <th>医院</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            @foreach($oExperts as $v )
                <tr>
                    <th>{{$v->id}}</th>
                    <th>{{$v->name}}</th>
                    <th>{{$v->zhicheng}}</th>
                    <th>{{$v->keshi}}</th>
                    <th>{{$v->yiyuan}}</th>
                    <form action="/adm/expert/deluser/{{$v->id}}" method="post">
                        @csrf
                        @method('DELETE')

                 <th>

                     <a href="/adm/expert/edit/{{$v->id}}"><span class="glyphicon glyphicon-edit" aria-hidden="true"></span></a> &nbsp;&nbsp;&nbsp;
                     <button type="submit" > <span class="glyphicon glyphicon-trash" aria-hidden="true"></span></button>
                      </th>
                    </form>
                </tr>
            @endforeach
            </tbody>
        </table>

    </div>

@endsection
